#ifndef _OSGIS_POSITION_PICK_HANDLLER_H_
#define _OSGIS_POSITION_PICK_HANDLLER_H_

#include <osgText/Text>
#include <osgViewer/Viewer>

namespace Osgis
{
	class PosPickHandler:public osgGA::GUIEventHandler
	{
	public:
		PosPickHandler(osgText::Text* updateText);
		~PosPickHandler();
	public:
		bool handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter& aa);
		virtual void pick(osgViewer::View* view, const osgGA::GUIEventAdapter& ea);
		void setLabel(const std::string& name);
	protected:
		osg::ref_ptr<osgText::Text>  _updateText;
	};
}
#endif